package com.jing21.learn.api.exception;

import lombok.NoArgsConstructor;

/**
 * @author zhengjing
 * @version 1.0
 * @date: 2017/11/2 10:38
 */
@NoArgsConstructor
public class SeviceException extends RuntimeException {

    private Long code;

    private String message;

    public SeviceException(String message) {
        this.message = message;
    }

    public SeviceException(Long code, String message) {
        this.code = code;
    }

    @Override
    public synchronized Throwable fillInStackTrace() {
        return null;
    }
}